Clearsite\Plugins\OGImage\Plugin D

Total Complexity 316
Dependencies 4
Dependents 4
Total lines 1,549
Lines of code 1,144
Logical lines of code 727
Comment lines 137
Methods 50
Properties 6

Methods 50

Method Rating Maintainability Complexity Lines of code
expand_text_options()
D
29 48 107
__construct()
D
24
40 149
expand_logo_options()
D
31 39 97
field_list()
B
32 15 94
text_fallback_chain()
A
44 13 38
font_rendering_tweaks()
A
37 6 90
image_fallback_chain()
A
50 10 27
_init()
A
44 9 42
admin_bar()
A
48 7 33
download_font()
S
48 7 30
get_purgable_cache()
S
51 7 27
file_put_contents()
S
60 7 12
patch_yoast_rest_api()
S
53 6 20
get_valid_POST_keys()
S
58 6 16
setup_defaults()
S
48 5 30
validate_text_options()
S
53 5 20
convert_webp_to_png()
S
54 5 20
maybe_fake_support_webp()
S
55 5 20
evaluate_font_weight()
S
57 5 19
wp_get_attachment_image_data()
S
57 4 16
font_rendering_tweaks_for()
S
60 4 13
go_for_id()
S
64 4 8
overrule_og_image()
S
67 4 6
font_filename()
S
65 4 8
hex_to_rgba()
S
59 3 13
storage()
S
60 3 12
get_font_list()
S
62 3 12
late_head()
S
67 3 9
display_log()
S
62 3 10
evaluate_horizontal()
S
65 3 8
evaluate_vertical()
S
65 3 8
get_management_permission()
S
68 3 7
rgba_to_hex()
S
59 2 13
protect_dir()
S
72 2 5
icon()
S
62 2 10
log()
S
65 2 9
dummy_data()
S
68 2 7
getInstance()
S
70 2 7
evaluate_font_style()
S
68 2 7
init()
S
66 2 8
get_og_image_url()
S
77 2 3
position_grid()
S
60 1 13
validate_logo_options()
S
73 1 5
admin_bar_icon_style()
S
72 1 7
get_plugin_file()
S
78 1 3
default_google_fonts()
S
66 1 8
setting()
S
78 1 3
setError()
S
69 1 6
text_is_identical()
S
71 1 5
post_types()
S
74 1 4